<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: wheels::mqttClient::stMsg结构体 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../df/d8d/namespacewheels.html">wheels</a></li><li class="navelem"><a class="el" href="../../dc/d63/classwheels_1_1mqtt_client.html">mqttClient</a></li><li class="navelem"><a class="el" href="../../d0/d12/structwheels_1_1mqtt_client_1_1st_msg.html">stMsg</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="../../d5/d29/structwheels_1_1mqtt_client_1_1st_msg-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">wheels::mqttClient::stMsg结构体 参考</div></div>
</div><!--header-->
<div class="contents">

<p>从path.mqtt继承消息结构，提供消息构造接口  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="../../d5/d27/mqtt_8hpp_source.html">mqtt.hpp</a>&gt;</code></p>
<div class="dynheader">
类 wheels::mqttClient::stMsg 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/de6/structwheels_1_1mqtt_client_1_1st_msg__inherit__graph.png" border="0" usemap="#awheels_1_1mqtt_client_1_1st_msg_inherit__map" alt="Inheritance graph"/></div>
<map name="awheels_1_1mqtt_client_1_1st_msg_inherit__map" id="awheels_1_1mqtt_client_1_1st_msg_inherit__map">
<area shape="rect" title="从path.mqtt继承消息结构，提供消息构造接口" alt="" coords="5,123,241,565"/>
<area shape="rect" title=" " alt="" coords="51,5,195,75"/>
<area shape="poly" title=" " alt="" coords="126,89,126,123,121,123,121,89"/>
</map>
</div>
<div class="dynheader">
wheels::mqttClient::stMsg 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../db/d70/structwheels_1_1mqtt_client_1_1st_msg__coll__graph.png" border="0" usemap="#awheels_1_1mqtt_client_1_1st_msg_coll__map" alt="Collaboration graph"/></div>
<map name="awheels_1_1mqtt_client_1_1st_msg_coll__map" id="awheels_1_1mqtt_client_1_1st_msg_coll__map">
<area shape="rect" title="从path.mqtt继承消息结构，提供消息构造接口" alt="" coords="5,123,241,565"/>
<area shape="rect" title=" " alt="" coords="51,5,195,75"/>
<area shape="poly" title=" " alt="" coords="126,89,126,123,121,123,121,89"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a6f799cb83f0694a31c9590cbc1352229" id="r_a6f799cb83f0694a31c9590cbc1352229"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6f799cb83f0694a31c9590cbc1352229">stMsg</a> ()</td></tr>
<tr class="memdesc:a6f799cb83f0694a31c9590cbc1352229"><td class="mdescLeft">&#160;</td><td class="mdescRight">默认构造qos = 1, retain = true; 构造后需要调用msg来指定消息数据内容。 也可以调用包含数据参数的构造  <br /></td></tr>
<tr class="separator:a6f799cb83f0694a31c9590cbc1352229"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d4626040a46d1e01ad370b9b5615e7e" id="r_a8d4626040a46d1e01ad370b9b5615e7e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8d4626040a46d1e01ad370b9b5615e7e">stMsg</a> (const <a class="el" href="../../d0/d12/structwheels_1_1mqtt_client_1_1st_msg.html">stMsg</a> &amp;b)</td></tr>
<tr class="separator:a8d4626040a46d1e01ad370b9b5615e7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5cf46c4ff1233be86234cfa317e1b3a4" id="r_a5cf46c4ff1233be86234cfa317e1b3a4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5cf46c4ff1233be86234cfa317e1b3a4">stMsg</a> (const std::string &amp;data)</td></tr>
<tr class="separator:a5cf46c4ff1233be86234cfa317e1b3a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4eafbed66dfcd9de5d84c6c636d11c28" id="r_a4eafbed66dfcd9de5d84c6c636d11c28"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4eafbed66dfcd9de5d84c6c636d11c28">stMsg</a> (const void *data, size_t len)</td></tr>
<tr class="separator:a4eafbed66dfcd9de5d84c6c636d11c28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6c08b02e26e745294e768431473d261" id="r_af6c08b02e26e745294e768431473d261"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af6c08b02e26e745294e768431473d261">stMsg</a> (int qos, const void *data, size_t len, bool retain=false)</td></tr>
<tr class="separator:af6c08b02e26e745294e768431473d261"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad46e9d4a80dc786e403b8a9d38b0badc" id="r_ad46e9d4a80dc786e403b8a9d38b0badc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad46e9d4a80dc786e403b8a9d38b0badc">stMsg</a> (const std::string &amp;data, int qos, bool retaiin=false)</td></tr>
<tr class="separator:ad46e9d4a80dc786e403b8a9d38b0badc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20b10a02c98cf86ffc7b9c8ef35c9b96" id="r_a20b10a02c98cf86ffc7b9c8ef35c9b96"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a20b10a02c98cf86ffc7b9c8ef35c9b96">~stMsg</a> ()</td></tr>
<tr class="separator:a20b10a02c98cf86ffc7b9c8ef35c9b96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac897bbe2745d1ecc1e7d90a4498c48fb" id="r_ac897bbe2745d1ecc1e7d90a4498c48fb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d0/d12/structwheels_1_1mqtt_client_1_1st_msg.html">stMsg</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac897bbe2745d1ecc1e7d90a4498c48fb">operator=</a> (const <a class="el" href="../../d0/d12/structwheels_1_1mqtt_client_1_1st_msg.html">stMsg</a> &amp;b)</td></tr>
<tr class="separator:ac897bbe2745d1ecc1e7d90a4498c48fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4dd2f796a7c001e2acce2b026183dce" id="r_aa4dd2f796a7c001e2acce2b026183dce"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa4dd2f796a7c001e2acce2b026183dce">msg</a> (const void *data, size_t len)</td></tr>
<tr class="memdesc:aa4dd2f796a7c001e2acce2b026183dce"><td class="mdescLeft">&#160;</td><td class="mdescRight">指定消息内容  <br /></td></tr>
<tr class="separator:aa4dd2f796a7c001e2acce2b026183dce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac641acc1154e8e5e9bcac2aed4907f27" id="r_ac641acc1154e8e5e9bcac2aed4907f27"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac641acc1154e8e5e9bcac2aed4907f27">msg</a> (const std::string &amp;data)</td></tr>
<tr class="separator:ac641acc1154e8e5e9bcac2aed4907f27"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a76cd2f25cc8ce95667c217e3e9fad0ff" id="r_a76cd2f25cc8ce95667c217e3e9fad0ff"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d0/d12/structwheels_1_1mqtt_client_1_1st_msg.html">stMsg</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a76cd2f25cc8ce95667c217e3e9fad0ff">fromPaho</a> (const MQTTClient_message &amp;<a class="el" href="#aa4dd2f796a7c001e2acce2b026183dce">msg</a>)</td></tr>
<tr class="memdesc:a76cd2f25cc8ce95667c217e3e9fad0ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">从paho.mqtt构造对象  <br /></td></tr>
<tr class="separator:a76cd2f25cc8ce95667c217e3e9fad0ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>从path.mqtt继承消息结构，提供消息构造接口 </p>

<p class="definition">在文件 <a class="el" href="../../d5/d27/mqtt_8hpp_source.html">mqtt.hpp</a> 第 <a class="el" href="../../d5/d27/mqtt_8hpp_source.html#l00037">37</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a6f799cb83f0694a31c9590cbc1352229" name="a6f799cb83f0694a31c9590cbc1352229"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6f799cb83f0694a31c9590cbc1352229">&#9670;&#160;</a></span>stMsg() <span class="overload">[1/6]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mqttClient::stMsg::stMsg </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>默认构造qos = 1, retain = true; 构造后需要调用msg来指定消息数据内容。 也可以调用包含数据参数的构造 </p>

<p class="definition">在文件 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html">mqtt.cpp</a> 第 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html#l00059">59</a> 行定义.</p>

</div>
</div>
<a id="a8d4626040a46d1e01ad370b9b5615e7e" name="a8d4626040a46d1e01ad370b9b5615e7e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d4626040a46d1e01ad370b9b5615e7e">&#9670;&#160;</a></span>stMsg() <span class="overload">[2/6]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mqttClient::stMsg::stMsg </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d0/d12/structwheels_1_1mqtt_client_1_1st_msg.html">stMsg</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>b</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html">mqtt.cpp</a> 第 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html#l00070">70</a> 行定义.</p>

</div>
</div>
<a id="a5cf46c4ff1233be86234cfa317e1b3a4" name="a5cf46c4ff1233be86234cfa317e1b3a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5cf46c4ff1233be86234cfa317e1b3a4">&#9670;&#160;</a></span>stMsg() <span class="overload">[3/6]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">mqttClient::stMsg::stMsg </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>data</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html">mqtt.cpp</a> 第 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html#l00082">82</a> 行定义.</p>

</div>
</div>
<a id="a4eafbed66dfcd9de5d84c6c636d11c28" name="a4eafbed66dfcd9de5d84c6c636d11c28"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4eafbed66dfcd9de5d84c6c636d11c28">&#9670;&#160;</a></span>stMsg() <span class="overload">[4/6]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mqttClient::stMsg::stMsg </td>
          <td>(</td>
          <td class="paramtype">const void *</td>          <td class="paramname"><span class="paramname"><em>data</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>len</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html">mqtt.cpp</a> 第 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html#l00093">93</a> 行定义.</p>

</div>
</div>
<a id="af6c08b02e26e745294e768431473d261" name="af6c08b02e26e745294e768431473d261"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6c08b02e26e745294e768431473d261">&#9670;&#160;</a></span>stMsg() <span class="overload">[5/6]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mqttClient::stMsg::stMsg </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>qos</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *</td>          <td class="paramname"><span class="paramname"><em>data</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>len</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>retain</em></span><span class="paramdefsep"> = </span><span class="paramdefval">false</span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html">mqtt.cpp</a> 第 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html#l00104">104</a> 行定义.</p>

</div>
</div>
<a id="ad46e9d4a80dc786e403b8a9d38b0badc" name="ad46e9d4a80dc786e403b8a9d38b0badc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad46e9d4a80dc786e403b8a9d38b0badc">&#9670;&#160;</a></span>stMsg() <span class="overload">[6/6]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mqttClient::stMsg::stMsg </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>data</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>qos</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>retaiin</em></span><span class="paramdefsep"> = </span><span class="paramdefval">false</span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html">mqtt.cpp</a> 第 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html#l00119">119</a> 行定义.</p>

</div>
</div>
<a id="a20b10a02c98cf86ffc7b9c8ef35c9b96" name="a20b10a02c98cf86ffc7b9c8ef35c9b96"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20b10a02c98cf86ffc7b9c8ef35c9b96">&#9670;&#160;</a></span>~stMsg()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mqttClient::stMsg::~stMsg </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html">mqtt.cpp</a> 第 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html#l00135">135</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a76cd2f25cc8ce95667c217e3e9fad0ff" name="a76cd2f25cc8ce95667c217e3e9fad0ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76cd2f25cc8ce95667c217e3e9fad0ff">&#9670;&#160;</a></span>fromPaho()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d0/d12/structwheels_1_1mqtt_client_1_1st_msg.html">mqttClient::stMsg</a> mqttClient::stMsg::fromPaho </td>
          <td>(</td>
          <td class="paramtype">const MQTTClient_message &amp;</td>          <td class="paramname"><span class="paramname"><em>msg</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>从paho.mqtt构造对象 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">msg</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html">mqtt.cpp</a> 第 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html#l00170">170</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d0/d12/structwheels_1_1mqtt_client_1_1st_msg_a76cd2f25cc8ce95667c217e3e9fad0ff_icgraph.png" border="0" usemap="#ad0/d12/structwheels_1_1mqtt_client_1_1st_msg_a76cd2f25cc8ce95667c217e3e9fad0ff_icgraph" alt=""/></div>
<map name="ad0/d12/structwheels_1_1mqtt_client_1_1st_msg_a76cd2f25cc8ce95667c217e3e9fad0ff_icgraph" id="ad0/d12/structwheels_1_1mqtt_client_1_1st_msg_a76cd2f25cc8ce95667c217e3e9fad0ff_icgraph">
<area shape="rect" title="从paho.mqtt构造对象" alt="" coords="307,39,437,81"/>
<area shape="rect" href="../../d8/d5b/mqtt_8cpp.html#a1f0795cbda29e32b3d6f379c226726f3" title=" " alt="" coords="184,47,259,73"/>
<area shape="poly" title=" " alt="" coords="292,63,260,63,260,57,292,57"/>
<area shape="rect" href="../../dc/d63/classwheels_1_1mqtt_client.html#aa5e61c99c5000159df5ae7a8bef121ff" title="构造MQTT客户端。在默认情况下如果不指定MQTT协议的版本，以3.1.1版本尝试连接；如果练级失败会尝试以3.1连接，再次失败会以5.0版本尝试" alt="" coords="5,5,136,48"/>
<area shape="poly" title=" " alt="" coords="168,51,136,44,137,39,169,46"/>
<area shape="rect" href="../../dc/d63/classwheels_1_1mqtt_client.html#a70147cdf4f553bb2129e368d16d6cc27" title=" " alt="" coords="5,72,136,115"/>
<area shape="poly" title=" " alt="" coords="169,74,137,81,136,76,168,69"/>
</map>
</div>

</div>
</div>
<a id="ac641acc1154e8e5e9bcac2aed4907f27" name="ac641acc1154e8e5e9bcac2aed4907f27"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac641acc1154e8e5e9bcac2aed4907f27">&#9670;&#160;</a></span>msg() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mqttClient::stMsg::msg </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>data</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html">mqtt.cpp</a> 第 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html#l00161">161</a> 行定义.</p>

</div>
</div>
<a id="aa4dd2f796a7c001e2acce2b026183dce" name="aa4dd2f796a7c001e2acce2b026183dce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4dd2f796a7c001e2acce2b026183dce">&#9670;&#160;</a></span>msg() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mqttClient::stMsg::msg </td>
          <td>(</td>
          <td class="paramtype">const void *</td>          <td class="paramname"><span class="paramname"><em>data</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>len</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>指定消息内容 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">data[</td><td>I ]， 消息内容。对于std::string类型的参数，直接使用std::string::length获取 载荷长度 </td></tr>
    <tr><td class="paramname">len[</td><td>I ]， 载荷长度 </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html">mqtt.cpp</a> 第 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html#l00153">153</a> 行定义.</p>

</div>
</div>
<a id="ac897bbe2745d1ecc1e7d90a4498c48fb" name="ac897bbe2745d1ecc1e7d90a4498c48fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac897bbe2745d1ecc1e7d90a4498c48fb">&#9670;&#160;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d0/d12/structwheels_1_1mqtt_client_1_1st_msg.html">mqttClient::stMsg</a> &amp; mqttClient::stMsg::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d0/d12/structwheels_1_1mqtt_client_1_1st_msg.html">stMsg</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>b</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html">mqtt.cpp</a> 第 <a class="el" href="../../d8/d5b/mqtt_8cpp_source.html#l00142">142</a> 行定义.</p>

</div>
</div>
<hr/>该结构体的文档由以下文件生成:<ul>
<li>include/<a class="el" href="../../d5/d27/mqtt_8hpp_source.html">mqtt.hpp</a></li>
<li>src/<a class="el" href="../../d8/d5b/mqtt_8cpp_source.html">mqtt.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
